package com.msmall.base.rms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.msmall.base.rms.manager.RMSManager;
import com.msmall.base.rms.po.Module;
import com.msmall.base.rms.service.RMSService;

@Service("rmsService")
public class RMSServiceImple implements RMSService{

	@Autowired
	public RMSManager rmsManager;
	
	/**
	 * 检查用户是否有权限访问URL
	 */
	public boolean checkUrlAuth(Integer administerid, String url) throws Exception {
		Module module = rmsManager.getModuleByAdministerAndUrl(administerid, url);
		if(module !=null)
			return true;
		return false;
	}

}
